home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-09-29 | 2.5 KB | 165 lines | [TEXT/MPS ] |
- ! This is a simple, test CCL script for the CCL Tool.
- ! It demonstrates using the IBX to log onto the apple.com vax.
- ! It uses the username and password supplied in the Calypso setup dialog.
- !
- !
- !
- ! This is the disconnection code.
- !
- *-LABEL 0
- *Jump 1
- !
- *-LABEL 1
- *CTBClose
- *Exit 0 Connection Closed.
- !
- !This is the connection code. LABEL 0 configures AppleLink for
- !communication.
- !
- -LABEL 0
- CTBTool 105 115 0 ~TOOL
- CTBParam 106 Baud 9600
- CTBOpen 5
- !
- -LABEL 1
- Flush
- CTBCLose
- Pause 24
- CTBOpen 6
- IncVar 1
- IfVar 1 3 106
- Jump 1
- !
- -LABEL 2
- Flush
- DsplyMsg Communication established.
- MatchStr 2 3 BER
- Xmit D\13
- Wait 120
- IncVar 2
- IfVar 2 3 40
- Jump 1
- !
- -LABEL 3
- Flush
- DsplyMsg Looking for an open data line...
- MatchStr 2 4 IATE
- MatchStr 3 8 BUSY
- ! Dial The known phone number for the apple vax.
- Xmit 42598\13
- Wait 180
- IncVar 3
- IfVar 3 3 120
- Jump 2
- !
- -LABEL 4
- DsplyPic 2
- DsplyMsg An open data line has been found.
- MatchStr 2 30 login:
- MatchStr 3 9 ON H
- MatchStr 4 7 FF A
- Wait 300
- !
- -LABEL 5
- DsplyPic 1
- DsplyMsg Establishing communication with the PBX...
- CanBtn 62
- MatchStr 1 1 IMEO
- MatchStr 2 2 E(T)
- Wait 60
- Jump 1 ! Try again.
- !
- -LABEL 6
- MatchStr 1 1 IMEO
- MatchStr 2 2 E(T)
- Wait 180
- IncVar 6
- IfVar 6 2 42
- Xmit ATS0=255\13
- Jump 1
- !
- -LABEL 7
- IncVar 4
- IfVar 4 3 51
- DsplyMsg No response from Apple VAX; trying again...
- DsplyPic 0
- DsplyPic 1
- Jump 1
- !
- -LABEL 8
- IncVar 7
- IfVar 7 3 106
- DsplyMsg All of the ports are busy now; trying again...
- Jump 1
- !
- -LABEL 9
- IncVar 5
- IfVar 5 3 106
- Jump 1
- !
- !
- -LABEL 30
- DsplyPic 3
- DsplyMsg Connection established.
- SetTries 0
- Flush
- DsplyPic 4
- DsplyMsg Transmitting account name...
- DsplyPic 5
- -LABEL 31
- MatchStr 1 36 Password
- MatchStr 2 62 NO CAR
- Xmit ~USER\13
- !
- -LABEL 33
- Wait 1200
- Jump 62
- !
- -LABEL 36
- DsplyMsg Transmitting password...
- Xmit ~PASS\13
- MatchStr 1 40 unix
- Wait 200
- -LABEL 37
- GetPass 2 62 The user name “~USER” or password is not being accepted. To try again, reenter your password and click OK.
- DsplyMsg Trying again with reentered password…
- Jump 31
-
- -LABEL 40
- DsplyPic 6
- DsplyMsg Access Granted.
- Exit 0
- !
- !
- -LABEL 62
- CTBCLose
- Exit -1
- !
- -LABEL 63
- CTBCLose
- Pause 24
- CTBOpen
- SetVar 1 0
- SetVar 2 0
- SetVar 3 0
- SetVar 4 0
- SetVar 5 0
- SetVar 6 0
- SetVar 7 0
- Jump 0
- -LABEL 105
- Alert -1 The specified tool doesn't exist.
- Exit -1
- -LABEL 106
- Alert -1 There was an error trying to use the given tool.
- Exit -1
- -LABEL 110
- Alert -1 Could not find tool 'Serial Tool' in Communications Folder
- Exit -1
- -LABEL 115
- Alert -1 Error in CMOpen.
- Exit -1
- -LABEL 120
- Alert 62 IBX Error. Press OK to try again.
- Jump 63
- !